//
import request from '@/utils/request'
// 合作商列表
const getHzs = (data) => request.get('/api/user-service/partner/search', {
  params: {
    ...data
  }
})
// 新增合作商
const addHzs = (data) => request.post('/api/user-service/partner', data)
// 删除
const delHzs = (id) => request.delete(`/api/user-service/partner/${id}`)
// 重置密码
const czmmHzs = (id) => request.put(`/api/user-service/partner/resetPwd/${id}`)
// 修改
const editHzs = (data) => request.put(`/api/user-service/partner/${data.id}`, data)
export {
  getHzs,
  addHzs,
  delHzs,
  czmmHzs,
  editHzs
}
